import request from '@/utils/axios'
import {
    URL_API
  } from '@/utils/mUtils'
  const base = URL_API()
// export const getTemperatureData = (params) => request.get('/api/tem', params)
export function getTemperatureData(params) {
    return request({
        url: '/api/tem',
        method: 'get',
        params: params
    })
}
export function getChartData(params) {
    return request({
        url: `${base}/api/user/chart/report/list`,
        method: 'post',
        data: params,
    })
}
export function definedChartList(params) {
    return request({
        url: `${base}/api/user/defined/chart/list`,
        method: 'post',
        data: params,
    })
}

export function definedChartUpdate(params) {
    return request({
        url: `${base}/api/user/defined/chart/update`,
        method: 'post',
        data: params,
    })
}
export function OperateCount(params) {
    return request({
      url: `${base}/api/data/view/operate/count`,
      method: 'post',
      data: params,
    })
  }
export function RevenueCostTotal(params) {
    return request({
      url: `${base}/api/report_form/revenue_cost/total`,
      method: 'post',
      data: params,
    })
}  
